bootstrap tests: disable compiler-rt optimizing
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 22 Oct 2024 07:03:38 +0000 (09:03 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Fri, 24 Jul 2026 16:02:33 +0000 (18:02 +0200)
it cannot work since there are no bundled LLVM (and thus no bundled
compiler-rt) sources available. during the regular build this is handled by our
config, but bootstrap tests don't use that..

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Gbp-Pq: Topic build
Gbp-Pq: Name bootstrap-tests-disable-compiler-rt-optimizing.patch

src/bootstrap/src/core/config/config.rs

index 053330d7417c6f89709b64a463dfc7697a5a31db..c049794869f49a54f32c28d437b8308b559b77ce 100644 (file)
@@ -1454,6 +1454,8 @@ impl Config {
             let build = toml.build.get_or_insert_with(Default::default);
             build.rustc = build.rustc.take().or(std::env::var_os("RUSTC").map(|p| p.into()));
             build.cargo = build.cargo.take().or(std::env::var_os("CARGO").map(|p| p.into()));
+            // Debian: don't optimize compiler-rt, the bundled sources are not available..
+            build.optimized_compiler_builtins = Some(false);
         }
 
         if let Some(include) = &toml.profile {